import {
  request,
} from "@rabbit.do/rabbit";

// 新增物料数据
export const createMaterialData = (data) => request({
  url: "/swan/product/thing/create",
  data,
});

// 修改物料数据
export const updateMaterialData = (data) => request({
  url: "/swan/product/thing/update",
  data,
});

// 查询单个物料数据
export const getMaterialData = (data) => request({
  url: "/swan/product/thing/get",
  data,
});

// 查询全部物料数据
export const getAllMaterialData = () => request({
  url: "/swan/product/thing/find/all",
});
